home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13011 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: usenet.eel.ufl.edu!warwick!not-for-mail
  2. From: esuvx@csv.warwick.ac.uk (Adge)
  3. Newsgroups: comp.os.ms-windows.programmer.graphics,comp.lang.c++
  4. Subject: Drawing from any procedure
  5. Date: 22 Mar 1996 17:21:05 -0000
  6. Organization: University of Warwick, Coventry, UK
  7. Message-ID: <4iuni1$oep@lily.csv.warwick.ac.uk>
  8.  
  9.  
  10. I am programming in ms Visual C++ v.4.0 under Win95, and am trying to 
  11. persuade it to allow me to draw graphics to a window from a procedure other
  12. than OnPaint or OnDraw.
  13.  
  14. I have tried using CPaintDC(this); , but this gives an access violation.
  15.  
  16. It used to be possible under Borland Pascal for win but I can't work out
  17. how to do it under visc++
  18.  
  19. Can anyone help ?
  20.  
  21. Regards
  22.  
  23. Adge
  24.  
  25. ----------------------------------------------------------------------------
  26. Adrian Davis, 4th Year Engineering Electronics Beng (hons) Meng.
  27. A.P.M.Davis@warwick.ac.uk
  28. ----------------------------------------------------------------------------
  29. Back by popular request :
  30. When God designed the human body, why did he put the ignition so near the 
  31. exhaust ?
  32. ----------------------------------------------------------------------------
  33. Warwick Uni Fencing Club (suaao) WWW - http:/www.csv.warwick.ac.uk/~suaao/
  34. ----------------------------------------------------------------------------
  35.